package com.dstz.demo.core.manager.impl;

import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.BuildMaterialsDao;
import com.dstz.demo.core.manager.BuildMaterialsManager;
import com.dstz.demo.core.model.BuildMaterials;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("BuildMaterialsManager")
public class BuildMaterialsManagerImpl extends BaseManager<String, BuildMaterials> implements BuildMaterialsManager {
    @Resource
    BuildMaterialsDao buildMaterialsDao;
    @Override
    public Integer saves(BuildMaterials buildMaterials) {
        return buildMaterialsDao.saves(buildMaterials);
    }

    @Override
    public List<BuildMaterials> findlist() {
        return buildMaterialsDao.findlist();
    }

    @Override
    public Integer deletes(String id) {
        return buildMaterialsDao.deletes(id);
    }

    @Override
    public Integer updates(BuildMaterials buildMaterials) {
        return buildMaterialsDao.updatess(buildMaterials);
    }
}
